ePaper (IL3820) module Library  v0.5
Library for the 2.9-inch WaveShare ePaper display module
il3820_drawLine.c
1 /*
2  * @file il3820_drawLine.c
3  *
4  * @author Matthew Matz & Roy Eltham
5  *
6  * @version 0.5
7  *
8  * @copyright Copyright (C) Parallax, Inc. 2018. See end of file for
9  * terms of use (MIT License).
10  *
11  * @brief Waveshare ePaper display driver component, see il3820_h. for documentation.
12  *
13  * @detail Please submit bug reports, suggestions, and improvements to
14  * this code to editor@parallax.com.
15  */
16 
17 
18 #include "il3820.h"
19 
20 
21 void il3820_drawFastHLine(screen *dev, int x, int y, int w, int color) {
22  for (int h = 0; h < w; h++) {
23  il3820_drawPixel(dev, x + h, y, color);
24  }
25 }
26 
27 void il3820_drawFastVLine(screen *dev, int x, int y, int w, int color) {
28  for (int h = 0; h < w; h++) {
29  il3820_drawPixel(dev, x, y + h, color);
30  }
31 }
32 
33